package com.pfsoft.query;/**
 * 文章查询对象
 *
 * @author PF
 * Created by dell on 2017-09-30.
 */

import org.hibernate.validator.constraints.Range;
import validate.Groups;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * com.pfsoft.query
 * 文章查询对象
 * @author PF
 * @create 2017-09-30 13:59
 **/
public class ArticleQuery {

    private String title;

    private String author;

    private String tag;

    private String category;

//    @NotNull(message = "beginDate不能为空",groups = Groups.Default.class)
    private Date beginDate;

//    @NotNull(message = "endDate不能为空",groups = Groups.Default.class)
    private Date endDate;

//    @Min(value = 1,message = "pageNo的取值不正确",groups = Groups.Default.class)
    private int pageNo;

//    @Range(min = 1,max = 100,message = "pageSize的取值范围不正确",groups = Groups.Default.class)
    private int pageSzie;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public Date getBeginDate() {
        return beginDate;
    }

    public void setBeginDate(Date beginDate) {
        this.beginDate = beginDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public int getPageNo() {
        return pageNo;
    }

    public void setPageNo(int pageNo) {
        this.pageNo = pageNo;
    }

    public int getPageSzie() {
        return pageSzie;
    }

    public void setPageSzie(int pageSzie) {
        this.pageSzie = pageSzie;
    }
}
